<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>结算 - MAN商城</title>
    <link rel="stylesheet" href="css/checkout.css">
</head>
<body>
    <header class="header">
        <!-- 同首页的头部 -->
    </header>

    <main class="checkout-container">
        <h2>结算</h2>
        <div class="checkout-steps">
            <div class="step active">1. 确认订单</div>
            <div class="step">2. 付款</div>
            <div class="step">3. 完成</div>
        </div>
        
        <div class="checkout-content">
            <div class="order-summary">
                <h3>订单摘要</h3>
                <div id="orderItems">
                    <!-- 订单商品将通过JavaScript动态加载 -->
                </div>
                <div class="order-total">
                    <span>总计:</span>
                    <span id="orderTotalPrice">¥0.00</span>
                </div>
            </div>
            
            <div class="shipping-info">
                <h3>收货信息</h3>
                <form id="shippingForm">
                    <div class="form-group">
                        <label for="name">收货人姓名</label>
                        <input type="text" id="name" name="name" required>
                    </div>
                    <div class="form-group">
                        <label for="phone">联系电话</label>
                        <input type="tel" id="phone" name="phone" required>
                    </div>
                    <div class="form-group">
                        <label for="address">详细地址</label>
                        <textarea id="address" name="address" rows="3" required></textarea>
                    </div>
                    <div class="form-group">
                        <label for="notes">备注</label>
                        <textarea id="notes" name="notes" rows="2"></textarea>
                    </div>
                </form>
            </div>
            
            <div class="payment-method">
                <h3>支付方式</h3>
<div class="payment-options">
    <label>
        <input type="radio" name="payment" value="alipay" checked>
        支付宝
    </label>
    <label>
        <input type="radio" name="payment" value="wechat">
        微信支付
    </label>
    <label>
        <input type="radio" name="payment" value="bank">
        银行卡
    </label>
</div>
            </div>
            
            <button id="placeOrderBtn">提交订单</button>
        </div>
    </main>

    <footer class="footer">
        <!-- 同首页的页脚 -->
    </footer>

    <script src="js/utils.js"></script>
    <script src="js/checkout.js"></script>
</body>
</html>